/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const venueRouter = {
	path: '/venue',
	component: Layout,
	redirect: '/venue/complex-table',
	name: 'venue',
	meta: {
		title: '场馆管理',
		icon: 'venue'
	},
	children: [{
			path: 'employee',
			component: () => import('@/views/venue/employee'),
			name: '员工管理',
			meta: {
				title: '员工管理'
			}
		}, {
			path: 'employeeDetail',
			component: () => import('@/views/venue/employeeDetail'),
			name: '员工管理编辑',
			meta: {
				title: '员工管理编辑',
				activeMenu: '/venue/employee'
			},
			hidden: true
		}, {
			path: 'employeeAdd',
			component: () => import('@/views/venue/employeeAdd'),
			name: '新增员工',
			meta: {
				title: '新增员工',
				activeMenu: '/venue/employee'
			},
			hidden: true
		}, {
			path: 'employeeSetting',
			component: () => import('@/views/venue/employeeSetting'),
			name: '设置',
			meta: {
				title: '设置',
				activeMenu: '/employeeSetting'
			},
			hidden: true
		},
		{
			path: 'employeeSettingEdit',
			component: () => import('@/views/venue/employeeSettingEdit'),
			meta: {
				title: '设置编辑'
			},
			hidden: true
		},
		{
			path: 'venues',
			component: () => import('@/views/venue/venues'),
			name: '场馆设置',
			meta: {
				title: '场馆设置'
			}
		},
		{
			path: 'notice',
			component: () => import('@/views/venue/notice'),
			name: '公告管理',
			meta: {
				title: '公告管理'
			}
		},
		{
			path: 'noticeAdd',
			component: () => import('@/views/venue/noticeAdd'),
			name: '新增公告',
			meta: {
				title: '新增公告',
				activeMenu: '/venue/notice'
			},
			hidden: true
		},
		{
			path: 'noticeDetail',
			component: () => import('@/views/venue/noticeDetail'),
			name: '公告详情',
			meta: {
				title: '公告详情'
			},
			hidden: true
		},
		{
			path: 'noticeEdit',
			component: () => import('@/views/venue/noticeEdit'),
			name: '编辑公告',
			meta: {
				title: '编辑公告'
			},
			hidden: true
		},
		{
			path: 'classroom',
			component: () => import('@/views/venue/classroom'),
			name: '教室管理',
			meta: {
				title: '教室管理'
			}
		}
	]
}
export default venueRouter